22. Exercise : Add Content Descriptions
L10 36 Content Descriptions SC
Enable Talkback on your device:
In Settings, navigate to System > Accessibility and select Use Service.
In add_gdg_fragment.xml:
Add
android:contentDescription="@string/add_gdg"totextViewIntro.
Add
android:contentDescription="@string/stage_image_description"toimageView.
Add
android:hint="@string/your_name_label"toEditTextName.
Add
android:hint="@string/email_label"toEditTextEmail.
Add
android:hint="@string/city_label"toEditTextCity.
Add
android:hint="@string/country_label"toEditTextCountry.
Add
android:hint="@string/region_label"toEditTextRegion.
Add
android:contentDescription="@string/motivation"tolabelTextWhy.
Add
android:hint="@string/enter_motivation"toEditTextWhy.
Add
android:contentDescription="@string/submit_button_description".
Run the app again and try talkback.
If you want to start at this step, you can download this exercise from: Step.09-Exercise-Add-Content-Descriptions.
You will find plenty of //TODO comments to help you complete this exercise, and if you get stuck, go back and watch the video again.
Once you’re done, you can check your solution against the solution we’ve provided here: Step.09-Solution-Add-Content-Descriptions, or using this git diff.
Task Description:
Complete the following tasks to add Talkback support to your app.
Task Feedback:
Thanks! Is your app talking back to you yet?
Reference documentation